/*
 * This class is used to get some info about the camera parameters
 */
package com.android.camtube;

import java.util.List;

import android.hardware.Camera;

public class CameraParameters {
	
	/********************
	 *    Attributes    *
	********************/
	
	// Features
	public String colorEffect;
	public String flashMode;
	public String focusMode;
	public Camera.Size pictureSize;
	public Camera.Size previewSize;
	public String sceneMode;
	public String whiteBalance;
	public int zoom;
	
	// Supported features
	public List<String> supportedColorEffects;
	public List<String> supportedFlashModes;
	public List<String> supportedFocusModes;
	public List<Camera.Size> supportedPicturesSizes;
	public List<Camera.Size> supportedPreviewSizes;
	public List<String> supportedScenesModes;
	public List<String> supportedWhiteBalance;
	public boolean supportedZoom;
	

	
	/*****************
	 *    Methods    *
	*****************/
	
	/*
	 * Constructor: Create an empty CameraParameters object
	 */
	CameraParameters() {
		colorEffect  = null;
		flashMode    = null;
		focusMode    = null;
		pictureSize  = null;
		previewSize  = null;
		sceneMode    = null;
		whiteBalance = null;
		zoom         = 0;
		
		supportedColorEffects  = null;
		supportedFlashModes    = null;
		supportedFocusModes    = null;
		supportedPicturesSizes = null;
		supportedPreviewSizes  = null;
		supportedScenesModes   = null;
		supportedWhiteBalance  = null;
		supportedZoom          = false;
	}
	
	/*
	 * Constructor: Create a pre-defined CameraParameters object
	 */
	CameraParameters(String colorEffect, String flashMode, String focusMode,
			Camera.Size pictureSize, Camera.Size previewSize, String sceneMode,
			String whiteBalance, int zoom) {
		this.colorEffect  = colorEffect;
		this.flashMode    = flashMode;
		this.focusMode    = focusMode;
		this.pictureSize  = pictureSize;
		this.previewSize  = previewSize;
		this.sceneMode    = sceneMode;
		this.whiteBalance = whiteBalance;
		this.zoom         = zoom;
		
		supportedColorEffects  = null;
		supportedFlashModes    = null;
		supportedFocusModes    = null;
		supportedPicturesSizes = null;
		supportedPreviewSizes  = null;
		supportedScenesModes   = null;
		supportedWhiteBalance  = null;
		supportedZoom          = false;
	}
}